package com.ruoyi.doorcontrol.mapper;

import java.util.List;
import com.ruoyi.doorcontrol.domain.ThDoorcontrolUser;
import org.apache.ibatis.annotations.Param;

/**
 * 门禁用户Mapper接口
 * 
 * @author zhang
 * @date 2024-07-18
 */
public interface ThDoorcontrolUserMapper 
{
    /**
     * 查询门禁用户
     * 
     * @param id 门禁用户主键
     * @return 门禁用户
     */
    public ThDoorcontrolUser selectThDoorcontrolUserById(Long id);

    /**
     * 查询门禁用户列表
     * 
     * @param thDoorcontrolUser 门禁用户
     * @return 门禁用户集合
     */
    public List<ThDoorcontrolUser> selectThDoorcontrolUserList(ThDoorcontrolUser thDoorcontrolUser);

    /**
     * 新增门禁用户
     * 
     * @param thDoorcontrolUser 门禁用户
     * @return 结果
     */
    public int insertThDoorcontrolUser(ThDoorcontrolUser thDoorcontrolUser);

    /**
     * 修改门禁用户
     * 
     * @param thDoorcontrolUser 门禁用户
     * @return 结果
     */
    public int updateThDoorcontrolUser(ThDoorcontrolUser thDoorcontrolUser);

    /**
     * 删除门禁用户
     * 
     * @param id 门禁用户主键
     * @return 结果
     */
    public int deleteThDoorcontrolUserById(Long id);

    /**
     * 批量删除门禁用户
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteThDoorcontrolUserByIds(Long[] ids);

    List<ThDoorcontrolUser> selectByVisitPlateNum(@Param("plateNum") String plateNum, @Param("effectiveTtime") String visit_effective_time);

    ThDoorcontrolUser selectEmployeeNo(String employeeId);

    int batchupdateThDoorcontrolUser(List<ThDoorcontrolUser> thDoorcontrolOldUsers);

}
